package com.mew.lobby.provide;

import com.mew.common.rest.mail.MailResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author tansonglin
 * @date 2021/9/22 14:58
 */
@Component
@FeignClient(value = "mew-kernel-user")
@RequestMapping(value = "/prop")
public interface PropFeignService {
    /**
     * 获取道具数量
     */
    @PostMapping("/number")
    @ResponseBody
    long getPropNumber(@RequestParam("userId") long userId, @RequestParam("propType") int propType);
}
